package com.xy.system.mode.act;

import com.xy.system.mode.IModeServer;
import com.xy.system.mode.Template;
import com.xy.system.mode.TemplateSet;
import com.xy.system.mode.TemplateVO;

import java.util.ArrayList;
import java.util.List;

public class QpMode implements IModeServer {
    @Override
    public TemplateSet getNormalFileList() {
        List<TemplateVO> voList = new ArrayList<>();
        voList.add(Template.java("domain.ftl", "entity", ".java"));
        voList.add(Template.java("bean.ftl", "model", "Bean.java"));
        voList.add(Template.java("service.ftl", "service", "Service.java"));
        voList.add(Template.java("mapper.ftl", "mapper", "Mapper.java"));
        voList.add(Template.java("xml.ftl", "mapper", "Mapper.xml"));
        voList.add(Template.java("controller.ftl", "controller", "Controller.java"));
        return new TemplateSet(voList, "qp");
    }
}
